package com.zzptc.zzwxx;

import java.util.StringTokenizer;

public class Test {
    public static void main(String[] args) {
        String s = "aaa,bbb,ccc";
        StringTokenizer stringTokenizer = new StringTokenizer(s,"!");
        while (stringTokenizer.hasMoreElements()){
            System.out.println(stringTokenizer.hasMoreElements());
        }
        String[] strings=s.split("!");
        System.out.println(strings[0]);
        System.out.println(strings[1]);
        System.out.println(strings[2]);
    }
}
